<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- public quote -->
<%@include file="/jsp/comm_css_include.jsp"%>
<!doctype html>
<html>
<head>

</head>
<body class="gray-bg">

<!-- 隐藏域 -->
<input id="busiId" name="busiId" type="hidden" value="${id}"/>
<input id="poId"   name="poId"   type="hidden" value="${uuid1}"/>
<input id="db1Id"  name="db1Id"  type="hidden" value="${uuid2}"/>
<input id="db2Id"  name="db2Id"  type="hidden" value="${uuid3}"/>
<input id="db3Id"  name="db3Id"  type="hidden" value="${uuid4}"/>
<input id="db4Id"  name="db4Id"  type="hidden" value="${uuid5}"/>

<input id="creditPeopleType"  name="creditPeopleType"  type="hidden" value="${creditPeopleType}"/>
<input id="id"  name="id"  type="hidden" value="${id}"/>
<input id="tid"  name="tid"  type="hidden" value="${tid}"/>
<input id="tid"  name="hid"  type="hidden" value="${hid}"/>

<input id="upDelete" name="upDelete" type="hidden" value="1"/>
<!-- 隐藏域 -->

<div class="container creditbody">
    <div class="iboxtitle">
        <span><i class="glyphicon glyphicon-map-marker"></i>&nbsp;业务受理 >业务申请 >增加配偶或担保人</span>
        <a href="javascript:void(0)"></a>
    </div>
     <div class="buttonfixed">
       <button type="button" class="btn dpbtn_blue btnaplly" onclick="save();">增加配偶或担保人</button>
    </div>
    <div class="ibox-content ibox-con">
        <form class="form-horizontal" id="commentForm">
            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
            	<tr>
            		<td align="right">
						<label class="control-label np">经办部门：</label>
					</td>
					<td>
                        <input id="orgName" name="orgName" type="text" class="form-control" value="${current_user_key.orgName}" readonly="readonly"/>
					</td>
					
					<td align="right">
						<label class="control-label np">经办人：</label>
					</td>
					<td>
                        <input id="parent" name="parent" type="text" class="form-control" value="${current_user_key.name}" readonly="readonly"/>
                        <input id="salersmanIdThen" type="hidden" name="salersmanIdThen" value="${current_user_key.id}"/>
                        <input id="clientType" type="hidden" name="clientType" value="pc">
					</td>
				</tr>
				<tr>	
            		<td align="right">
						<label class="control-label np">经销商：</label>
					</td>
					<td>
						<input  class="form-control" type="hidden" id="business-cho" name="business-cho" />
		    			<input id="p-business-cho"  name="p-business-cho" type="text" class="form-control"  aria-required="true" readonly="readonly"/>
					</td>
				
					<td align="right">
						<label class="control-label np">业务员：</label>
					</td>
					<td>
						<input  class="form-control" type="hidden" id="salemanId" name="salemanId" />
						<input  class="form-control" type="text" id="salemanName" name="salemanName" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="control-label np">银行：</label>
					</td>
					<td colspan="3">
						<select id="bankCode" name="bankCode" class="form-control" disabled="disabled"></select>
					</td>
				</tr>
            </table>
        </form>
        <form class="form-horizontal" id="commentFormb">    
            <div class="business-manwife">客户信息</div>
            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
            	<tr>
            		<td align="right">
						<label class="control-label np">客户姓名：</label>
					</td>
					<td>
						<input id="subCustomer_cusName" name="subCustomer_cusName" minlength="1" maxlength="50" type="text" class="form-control" required="" aria-required="true" placeholder="请输入客户姓名" readonly="readonly"/>
					</td>
					<td align="right">
						<label class="control-label np">身份证：</label>
					</td>
					<td>
                        <input id="subCustomer_cusNo" name="subCustomer_cusNo" onkeyup="toUpperCase(this)" onkeyup="toUpperCase(this)"  minlength="1" maxlength="50" type="text" class="form-control" placeholder="请输入身份证" readonly="readonly"/>
					</td>
					<td align="right">
						<label class="control-label np">手机号码：</label>
					</td>
            	
					<td>
                        <input id="subCustomer_phone" placeholder="手机号码"   name="subCustomer_phone" minlength="11" maxlength="11" type="text" class="form-control"  readonly="readonly"/>
					</td>
				</tr>
            </table>
            <div class="zx-addimg">
				 <div class="padding-nono padding-nonob">
	    			<div class="zx-addimg">
			        	<ul id="SHEN_FEN_ZHENG_MING"></ul>
	        		</div>
	    		</div>
            </div>
            
            
            <div id="poXinXiShow" name="poXinXiShow" style="display: none;">
				<div class="business-manwife">配偶信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">配偶姓名：</label>
						</td>
						<td>
							<input id="po_cusName" name="po_cusName" minlength="1" maxlength="50" type="text" class="form-control"  aria-required="true" placeholder="请输入配偶姓名">
						</td>
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
						<td>
	                        <input id="po_cusNo" name="po_cusNo" onkeyup="toUpperCase(this)" minlength="1" maxlength="50" type="text" class="form-control" placeholder="请输入身份证">
						</td>
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="po_phone" placeholder="手机号码"   name="po_phone" minlength="11" maxlength="11" type="text" class="form-control" />
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="PEI_OU_SHEN_FEN_ZHENG_MING">
						<li>
							<img filelabel="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								<input type="file"  accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','PEI_OU_SHEN_FEN_ZHENG_MING',false, false,null,null,'${uuid1}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								<input type="file"  accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','PEI_OU_SHEN_FEN_ZHENG_MING',false, false,null,null,'${uuid1}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }">
							<span filelabelDelSpan="${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file"  accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','PEI_OU_SHEN_FEN_ZHENG_MING',false, false,null,null,'${uuid1}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }">
							<span filelabelDelSpan="${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.PEIOU_ZHENG_XIN_QIANZIZHAO }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.PEIOU_ZHENG_XIN_QIANZIZHAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','PEI_OU_SHEN_FEN_ZHENG_MING',false, false,null,null,'${uuid1}');" />
							</a>
						</li>
					</ul>
	              </div>            
            </div>
            
            <div id="danBaoRenXinXi001" name="danBaoRenXinXi001" style="display: none;">
	            <div class="business-manwife">担保人1信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">担保人姓名：</label>
						</td>
	            	
						<td>
							<input id="db1_cusName" name="db1_cusName" minlength="1" maxlength="50" type="text" class="form-control"  aria-required="true" placeholder="请输入担保人姓名">
						</td>
						
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	            	
						<td>
	                        <input id="db1_cusNo" name="db1_cusNo" onkeyup="toUpperCase(this)"  minlength="1" maxlength="50" type="text" class="form-control" placeholder="请输入身份证">
						</td>
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="db1_phone" placeholder="手机号码"   name="db1_phone" minlength="11" maxlength="11" type="text" class="form-control"  />
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1">
						<li>
							<img filelabel="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file"  accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1', false, false,null,null,'${uuid2}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1', false, false,null,null,'${uuid2}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }">
							<span filelabelDelSpan="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1', false, false,null,null,'${uuid2}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }">
							<span filelabelDelSpan="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1', false, false,null,null,'${uuid2}');" />
							</a>
						</li>
					</ul>
	              </div>
            </div>
            
            <div id="danBaoRenXinXi002" name="danBaoRenXinXi002" style="display: none;">
	            <div class="business-manwife">担保人2信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">担保人姓名：</label>
						</td>
	            	
						<td>
							<input id="db2_cusName" name="db2_cusName" minlength="1" maxlength="50" type="text" class="form-control"  aria-required="true" placeholder="请输入担保人姓名">
						</td>
						
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	            	
						<td>
	                        <input id="db2_cusNo" name="db2_cusNo" onkeyup="toUpperCase(this)" minlength="1" maxlength="50" type="text" class="form-control" placeholder="请输入身份证">
						</td>
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="db2_phone" placeholder="手机号码"   name="db2_phone" minlength="11" maxlength="11" type="text" class="form-control"  />
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2">
						<li>
							<img filelabel="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2', false, false,null,null,'${uuid3}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2', false, false,null,null,'${uuid3}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }">
							<span filelabelDelSpan="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2', false, false,null,null,'${uuid3}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }">
							<span filelabelDelSpan="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2', false, false,null,null,'${uuid3}');" />
							</a>
						</li>
					</ul>
	            </div>
	        </div>
            <div id="danBaoRenXinXi003" name="danBaoRenXinXi003" style="display: none;">
	            <div class="business-manwife">担保人3信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">担保人姓名：</label>
						</td>
	
						<td>
							<input id="db3_cusName" name="db3_cusName" minlength="1" maxlength="50" type="text" class="form-control"  aria-required="true" placeholder="请输入担保人姓名">
						</td>
	
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	
						<td>
	                           <input id="db3_cusNo" name="db3_cusNo" onkeyup="toUpperCase(this)" minlength="1" maxlength="50" type="text" class="form-control" placeholder="请输入身份证">
						</td>
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="db3_phone" placeholder="手机号码"   name="db3_phone" minlength="11" maxlength="11" type="text" class="form-control"  />
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3">
						<li>
							<img filelabel="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3', false, false,null,null,'${uuid4}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3', false, false,null,null,'${uuid4}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }">
							<span filelabelDelSpan="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3', false, false,null,null,'${uuid4}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }">
							<span filelabelDelSpan="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3', false, false,null,null,'${uuid4}');" />
							</a>
						</li>
					</ul>
	            </div>
	        </div>   
	           
	        <div id="danBaoRenXinXi004" name="danBaoRenXinXi004" style="display: none;">   
	            <div class="business-manwife">担保人4信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">担保人姓名：</label>
						</td>
	
						<td>
							<input id="db4_cusName" name="db4_cusName" minlength="1" maxlength="50" type="text" class="form-control"  aria-required="true" placeholder="请输入担保人姓名">
						</td>
	
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	
						<td>
	                           <input id="db4_cusNo" name="db4_cusNo" onkeyup="toUpperCase(this)" minlength="1" maxlength="50" type="text" class="form-control" placeholder="请输入身份证">
						</td>
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="db4_phone" placeholder="手机号码"   name="db4_phone" minlength="11" maxlength="11" type="text" class="form-control"  />
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4">
						<li>
							<img filelabel="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4', false, false,null,null,'${uuid5}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4', false, false,null,null,'${uuid5}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }">
							<span filelabelDelSpan="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4', false, false,null,null,'${uuid5}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }">
							<span filelabelDelSpan="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4', false, false,null,null,'${uuid5}');" />
							</a>
						</li>
					</ul>
	            </div>
	         </div>
        </form>    
    </div>
    
    
     <!-- 业务员选择 -->
    <div class="content-show" id="searchDiv" style="display: none;">
		<input type="text"  class="form-control autosearch2" id="searchname" name="searchname" placeholder="业务员姓名" onkeyup="salemancho(this.value, true);" onafterpaste="salemancho(this.value, true);">
		<ul class="cho-ul" id="searchUl"></ul>
	</div>
	<div id="contractDiv" style="display: none;">
		 <div class="ibox-content" style="height: 280px;border: 1px solid #F5F5F6; overflow:auto;overflow-x: hidden;">
	 		 <div id="contractVersion" class="ztree"></div>
	 	</div>
	    <div class="ibox-content">
		    <button class="btn dpbtn_green" type="button" onclick="confirm();">确定</button>
		    <button class="btn dpbtn_red" type="button" onclick="cancel();">取消</button>
	 	</div>
 	</div>
</div>

<!-- public quote -->
	<%@include file="/jsp/comm_js_include.jsp" %>

<!-- 文件上传 -->
	<%@include file="/jsp/common_fileupload_include.jsp"%>
<!-- custom js -->
    <script type="text/javascript" src="${basePath}/js/sqCZX/sqczx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>

<!-- 
	业务受理 业务申请 申请征信	
 -->
<script type="text/javascript">

	$(function(){
		
		initData();
		
	});
	
	var initData = function()
	{
		var id = $('#tid').val();
		
		//获取银行数据信息
		$.dpAjax({
	   		url:'${basePath}/YwShenQingZxController/getSQServiceById',
	   		data:{
	   			"id":id
	   		},
			success: function(datas){
		 	  if(datas.flag == "100100")
		 	  {
		 		  var d = datas.LoanBank_result;
		 		  var objs = '';
		 		  for(var key in d)
		 		  {
		 			  objs += '<option value="'+key+'">'+d[key]+'</option>';
		 		  }
		 		  $('#bankCode').html(objs);
		 		  
		 		  var ku = "";
		 		  if(datas.entityResult.length > 0)
		 		  {
		 			  ku = datas.entityResult[0];
		 			  //判断此用户是什么银行
					  var bk = document.getElementById("bankCode");
					  for(var i=0;i<bk.length;i++)
					  {
						  if(ku.bankCode == bk[i].value)
						  {
							  bk[i].selected = true;
							  break;
						  }
					  }
		 		  }
		 		  
		 		  if(ku && ku != "")
		 		  {
		 			  $("#subCustomer_cusName").val(ku.cusName);
			 		  $("#subCustomer_cusNo").val(ku.cusNo);
			 		  $('#p-business-cho').val(ku.dealerName);
			 		  $('#salemanName').val(ku.name);
			 		  $('#business-cho').val(ku.dealerId);
			 		  $('#salemanId').val(ku.salersmanIdThen);
			 		  $('#subCustomer_phone').val(ku.tel1);
		 		  }
		 		  
		 		 
		 		  
		 		  //图片显示
		 		  showAttentment(ku.replaceId,'', '${modeIDTypeNames.ZXCX}','',function(datas){
		 			  
		 			    var label = ['label00111','label001111','label0011111','label00111111'];
		 			  
		 			    for(var j=0;j<label.length;j++)
		 			    {
		 			    	var lb = label[j];
		 			    	
		 			    	for(var key in datas)
				 			{
				 				for(var i=0;i<datas[key].length;i++)
				 				{
				 					var d = datas[key][i];
				 					
				 					if(lb == d.fileLabel)
				 					{
				 						lb = "";
				 						break;
				 					}
				 				}
				 			}
		 			    	
		 			    	if(lb != "" && j == 0)
		 			    	{
		 			    		$('#danBaoRenXinXi001').show();
		 			    	}
		 			    	else if(lb != "" && j == 1)
		 			    	{
		 			    		$('#danBaoRenXinXi002').show();
		 			    	}
		 			    	else if(lb != "" && j == 2)
		 			    	{
		 			    		$('#danBaoRenXinXi003').show();
		 			    	}
		 			    	else if(lb != "" && j == 3)
		 			    	{
		 			    		$('#danBaoRenXinXi004').show();
		 			    	}
		 			    }
		 		  });
		 		  
		 		  //隐藏显示增加的个数
		 		  var poCount = datas.poCount;
		 		  if(poCount == 0)
		 		  {
		 			  $('#poXinXiShow').show();
		 		  }
				  return;
			  }
			  if(datas.flag == "100200"){
				  alert(JSON.stringify(datas));
	              return;
	          }
			  layer.msg(datas.message, {icon: 2});
			}
	   	});
	}
	
	//操作可重复操作控制值
	var saveIndex = 0;


	//程立勇
	var save = function () 
	{	
		$("input").each(function(){
			$(this).blur();
		});
		
		if(saveIndex == 1)
		{
			layer.msg("正在提交本次信息，不可重复操作！", {icon: 6});
			return;
		}
		
		var subCustomer = $('#subCustomer_cusNo').val().trim();
		var po = $('#po_cusNo').val().trim();
		var db1 = $('#db1_cusNo').val().trim();
		var db2 = $('#db2_cusNo').val().trim();
		var db3 = $('#db3_cusNo').val().trim();
		var db4 = $('#db4_cusNo').val().trim();
		var idNos = [];
		if(subCustomer != '') {
			idNos.push(subCustomer);
		}
		if(po != '') {
			idNos.push(po);
		}
		if(db1 != '') {
			idNos.push(db1);
		}
		if(db2 != '') {
			idNos.push(db2);
		}
		if(db3 != '') {
			idNos.push(db3);
		}
		if(db4 != '') {
			idNos.push(db4);
		}
		if(idNos.length > 0) {
			for(var i = 0; i < idNos.length; i++) {
				var thisIdNo = idNos[i];
				for(var j = i + 1; j < idNos.length; j++) {
					var targetIdNo = idNos[j];
					if(thisIdNo == targetIdNo) {
						layer.msg("身份证不能重复", {icon: 5});
						return false;
					}
				}
			}
		}
		
		var validstatus = $("#commentForm").valid();
		if(validstatus){
			//验证
			if(!validateImg('subCustomer')){
				return;
			}
			if(!validateImg('po')){
				return;
			}
			if(!validateImg('db1')){
				return;
			}
			if(!validateImg('db2')){
				return;
			}
			if(!validateImg('db3')){
				return;
			}
			if(!validateImg('db4')){
				return;
			}
			
			var busiId = document.getElementById("busiId").value.trim();
			var dealer_id = document.getElementById("business-cho").value.trim();
			var salemanName = document.getElementById("salemanId").value.trim();
			var bankCode = document.getElementById("bankCode").value.trim();
			var subCustomer_cusName = document.getElementById("subCustomer_cusName").value.trim();
			var subCustomer_cusNo = document.getElementById("subCustomer_cusNo").value.trim();
			var client_type = "pc";
			var query_credit_apply_status = 20;
			var credit_query_status = 10;
			
			var po_cusName = document.getElementById("po_cusName").value.trim();
			var po_cusNo = document.getElementById("po_cusNo").value.trim();
			
			var db1_cusName = document.getElementById("db1_cusName").value.trim();
			var db1_cusNo = document.getElementById("db1_cusNo").value.trim();
			
			var db2_cusName = document.getElementById("db2_cusName").value.trim();
			var db2_cusNo = document.getElementById("db2_cusNo").value.trim();
			
			var db3_cusName = document.getElementById("db3_cusName").value.trim();
			var db3_cusNo = document.getElementById("db3_cusNo").value.trim();
			
			var db4_cusName = document.getElementById("db4_cusName").value.trim();
			var db4_cusNo = document.getElementById("db4_cusNo").value.trim();
			
			var poId = $('#poId').val();
			var db1Id = $('#db1Id').val();
			var db2Id = $('#db2Id').val();
			var db3Id = $('#db3Id').val();
			var db4Id = $('#db4Id').val();
			
			//手机号码
			var po_phone = $('#po_phone').val();
			var db1_phone = $('#db1_phone').val();
			var db2_phone = $('#db2_phone').val();
			var db3_phone = $('#db3_phone').val();
			var db4_phone = $('#db4_phone').val();
			
			
			//询问框
			layer.confirm('是否执行本次操作？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
			  btn: ['确认','取消'] //按钮
			}, function(){
				layer.closeAll();
				if(saveIndex == 1)
				{
					layer.msg("正在提交本次信息，不可重复操作！", {icon: 6});
					return;
				}
				
				$.dpAjax({
			   		url:'${basePath}/YwShenQingZxController/diepuZxApply',
					data:{
						"poExt.id":busiId,
						"poExt.dealer_id":dealer_id,
						"poExt.salersman_id_then":salemanName,
						"poExt.bank_code":bankCode,
						"poExt.customer_name":po_cusName,
						"poExt.customer_no":po_cusNo,
						"poExt.query_credit_apply_status":query_credit_apply_status,
						"poExt.client_type":client_type,
						"poExt.credit_people_type":"01",
						"poExt.credit_query_status":credit_query_status,
						"poExt.poDbId":poId,
						"poExt.tel1":po_phone,
						
						"db1Ext.id":busiId,
						"db1Ext.dealer_id":dealer_id,
						"db1Ext.salersman_id_then":salemanName,
						"db1Ext.bank_code":bankCode,
						"db1Ext.customer_name":db1_cusName,
						"db1Ext.customer_no":db1_cusNo,
						"db1Ext.query_credit_apply_status":query_credit_apply_status,
						"db1Ext.client_type":client_type,
						"db1Ext.credit_people_type":"02",
						"db1Ext.credit_query_status":credit_query_status,
						"db1Ext.poDbId":db1Id,
						"db1Ext.tel1":db1_phone,
						
						"db2Ext.id":busiId,
						"db2Ext.dealer_id":dealer_id,
						"db2Ext.salersman_id_then":salemanName,
						"db2Ext.bank_code":bankCode,
						"db2Ext.customer_name":db2_cusName,
						"db2Ext.customer_no":db2_cusNo,
						"db2Ext.query_credit_apply_status":query_credit_apply_status,
						"db2Ext.client_type":client_type,
						"db2Ext.credit_people_type":"02",
						"db2Ext.credit_query_status":credit_query_status,
						"db2Ext.poDbId":db2Id,
						"db2Ext.tel1":db2_phone,
						
						"db3Ext.id":busiId,
						"db3Ext.dealer_id":dealer_id,
						"db3Ext.salersman_id_then":salemanName,
						"db3Ext.bank_code":bankCode,
						"db3Ext.customer_name":db3_cusName,
						"db3Ext.customer_no":db3_cusNo,
						"db3Ext.query_credit_apply_status":query_credit_apply_status,
						"db3Ext.client_type":client_type,
						"db3Ext.credit_people_type":"02",
						"db3Ext.credit_query_status":credit_query_status,
						"db3Ext.poDbId":db3Id,
						"db3Ext.tel1":db3_phone,
						
						"db4Ext.id":busiId,
						"db4Ext.dealer_id":dealer_id,
						"db4Ext.salersman_id_then":salemanName,
						"db4Ext.bank_code":bankCode,
						"db4Ext.customer_name":db4_cusName,
						"db4Ext.customer_no":db4_cusNo,
						"db4Ext.query_credit_apply_status":query_credit_apply_status,
						"db4Ext.client_type":client_type,
						"db4Ext.credit_people_type":"02",
						"db4Ext.credit_query_status":credit_query_status,
						"db4Ext.poDbId":db4Id,
						"db4Ext.tel1":db4_phone
					},
					success: function(datas) {
		   				  layer.msg("执行成功！", {icon: 6});
		   				  setTimeout(function(){
		   					 window.location.href = "${basePath}/web/ywShouLi/ywShenQing/CreditApplyAddList.jsp";
		   				  },1500);
						  return;
					},
					busiReturn :function (datas) {
						saveIndex = 0;
					}
				});
				
			}, function(){
				layer.msg('已取消本次操作！', {icon: 6});
			});
		}
		else{
			layer.msg("有验证未通过，请仔细检查！", {icon: 5});
		}
	}
</script>
</body>
</html>
